dojo.declare("DProductCatalogPg", wm.Page, {
    start: function() {

    },
    "preferredDevice": "desktop",

    itemsDojoGridImageUrlFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
        try {
            var file = "services/FileUploadDownload.download?method=downloadFile&fileName=" + inValue;
            return '<img  style="height: 50px;" src="' + file + '" />';
        } catch (e) {
            console.error('ERROR IN dojoGrid2PicurlFormat: ' + e);
        }
    },

    lvVendorsSuccess: function(inSender, inDeprecated) {
		  var item = this.selectMenu1.dataSet.getItem(0);
        this.selectMenu1.setDataValue(item);
	},
	itemsNewButtonClick1: function(inSender) {
        this.dojoFileUpload1.reset();
        this.itemsDojoGrid.deselectAll();
		this.dojoFileUpload1.reset();
        var item = this.selectMenu1.selectedItem;
        this.lookup1.setDataValue(item);
       // this.itemsLiveForm1.clearData();
	},
	_end: 0
});